package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-06
 * Time: 9:36
 */
public class Test extends Dog{

    public Test(String name, int age) {
        super(name, age);
    }

    public static void main1(String[] args) {
        Dog dog1 = new Dog("wangcai",10);
        Dog dog2 = new Dog("wangcai",10);
        System.out.println(dog1.equals(dog2));
        System.out.println(dog1.hashCode());
        System.out.println(dog2.hashCode());
    }
}
